package com.demo.xml_c_p;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestSetter {
    
    @Test
    public void test() {
        String xmlPath="com/demo/xml_c_p/beans.xml";
        ApplicationContext classPathXmlApplicationContext=new ClassPathXmlApplicationContext(xmlPath);
        Person person = (Person) classPathXmlApplicationContext.getBean("personId");
        System.out.println(person);
    
    }
    
}
